// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import fastClick from 'fastclick'//引用前需要先安装cnpm install fastclick --save
import vueSwesomeSwiper from 'vue-awesome-swiper'//引用前需先安装cnpm install vue-awesome-swiper --save
import 'swiper/dist/css/swiper.css'
import './assets/styles/reset.css'
import './assets/styles/border.css'//一像素边框解决方案
import './assets/styles/iconfont.css'
import './assets/styles/novel-style.styl'
import './assets/js/rem.js'

Vue.config.productionTip = false
fastClick.attach(document.body)//fastclick使用.  点击延迟解决方案
Vue.use(vueSwesomeSwiper)//swiper轮播插件使用

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})

//路由就是根据网址的不同，返回不同的内容给用户